export default class ScoreManager {
  constructor() {
    this.score = 0;
    this.carrots = 0;
  }
  
  addScore(points) {
    this.score += points;
    return this.score;
  }
  
  addCarrot() {
    this.carrots++;
    this.addScore(10);
    return this.carrots;
  }
  
  getScore() {
    return this.score;
  }
  
  getCarrots() {
    return this.carrots;
  }
  
  reset() {
    this.score = 0;
    this.carrots = 0;
  }
} 